package com.xmcc.dto;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Getter
@Setter
public class SysAclDto implements Serializable {

    private Integer id;

    @NotBlank(message = "列表名不能为空")
    @Length(min = 2,max = 20,message = "列表名长度在3-20位之间")
    private String name;

    @NotNull
    private Integer aclModuleId;

    @NotBlank(message = "url不能为空")
    private String url;

    @NotNull(message = "类型，1：菜单，2：按钮，3：其他")
    @Min(1)
    @Max(3)
    private Integer type;

    @NotNull(message = "状态，1：正常，0：冻结")
    @Min(0)
    @Max(1)
    private Integer status;

    @NotNull(message = "顺序不能为空")
    private Integer seq;

    private String remark;
}
